package classfile

type ConstantMemberrefInfo struct {
	cp                  ConstantPool
	tag                 uint8
	class_index         uint16
	name_and_type_index uint16
}

func (self *ConstantMemberrefInfo) readInfo(reader *ClassReader) {
	self.class_index = reader.readUint16()
	self.name_and_type_index = reader.readUint16()
}

func (self *ConstantMemberrefInfo) ClassName() string {
	return self.cp.getClassName(self.class_index)

}

func (self *ConstantMemberrefInfo) NameAndDescriptor() (string, string) {
	return self.cp.getNmeAndType(self.name_and_type_index)
}
